package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_order_goodsMapper;
import com.business.domain.T_order_goods;

@Service("t_order_goodsService")
@Transactional
public class T_order_goodsService{
	private static Logger log = Logger.getLogger(T_order_goodsService.class.getName());

	@Resource
    private T_order_goodsMapper t_order_goodsMapper;


	public int save(T_order_goods obj){
		 return t_order_goodsMapper.save(obj);
	}

	public int update(T_order_goods obj){
		return t_order_goodsMapper.update(obj);
	}
	public int updateByBuyer(T_order_goods obj){
		return t_order_goodsMapper.updateByBuyer(obj);
	}

	public int delete(T_order_goods obj){
		return t_order_goodsMapper.delete(obj);
	}

	public int deleteByBuyer(T_order_goods obj){
		return t_order_goodsMapper.deleteByBuyer(obj);
	}

	public T_order_goods findById(T_order_goods obj){
		return t_order_goodsMapper.findById(obj);
	}

	public List findAll(T_order_goods obj ){
		 return t_order_goodsMapper.findAll(obj);
	}

	public int findCountAll(T_order_goods obj ){
		 return t_order_goodsMapper.findCountAll(obj);
	}

	public List findAllGWC(T_order_goods obj ){
		 return t_order_goodsMapper.findAllGWC(obj);
	}

	public int findCountAllGWC(T_order_goods obj ){
		 return t_order_goodsMapper.findCountAllGWC(obj);
	}
}
